<!DOCTYPE html>
<html>
<head>

    <link rel="stylesheet" href="/Statics/Home/css/amazeui.min.css">
    <link rel="stylesheet" href="/Statics/Home/css/reset.css">
    <link rel="stylesheet" href="/Statics/Home/css/common.css">
    <link rel="stylesheet" href="/Statics/Home/css/button.css">
    <template file="Home/meta"/>
    <template file="Home/css"/>


</head>
<body>
<template file="Home/search" />


<div>

    <img  class="am-img-responsive" src="/Statics/Home/img/main-ad.png" />
</div>



<div class="am-g  ">



    <h3 class="am-padding-sm" style="border-bottom: 2px solid #073d79; color: #073d79">  <i class="am-icon-file-o"> </i> {$_data.title}</h3>


    <form class="am-form" method="post" data-am-validator action="{:U('toupiao')}">


    <volist name="_list" id="v" key="ii">



        <div class="am-cf am-padding-horizontal-lg">

            <p>{$ii}.{$v.title}</p>

            <switch name="v['type']" >
                <case value="select">

                    <volist name="v['answers']" id="vv">

                        <label class="am-radio">
                            <input type="radio" name="{$v.id}" value="{$vv.id}" re data-am-ucheck {$v.required}>
                         <span class=" am-margin-left-sm"> {$vv.value} </span>
                        </label>



                    </volist>



                </case>
                <case value="selects">


                    <volist name="v['answers']" id="vv">

                        <label class="am-checkbox">
                            <input type="checkbox" name="{$v.id}[]" value="{$vv.id}" data-am-ucheck {$v.required}>
                            {$vv.value}
                        </label>



                    </volist>




                </case>
                <case value="input">
                    <input type="text" name="{$v.id}" value="" placeholder="{$v.tishi}" {$v.required}>


                </case>
                <case value="textarea">

                    <textarea name="{$v.id}"  placeholder="{$v.tishi}" {$v.required}></textarea>

                </case>
            </switch>




        </div>

    </volist>



        <div class="am-cf am-margin-top-sm">

            <input type="hidden" name="vote_id" value="{:I('get.id')}" >

            <switch name="status" >
                <case value="yitou" break="0或1">
                    <button class="am-btn am-btn-primary am-btn-block" type="submit" disabled>您已经参与过!</button>
                </case>
                <case value="guoqi">
                    <button class="am-btn am-btn-primary am-btn-block" type="submit" dis>已结束</button>
                </case>

                <default />    <button class="am-btn am-btn-primary am-btn-block" type="submit">立即提交</button>

            </switch>





        </div>

        </form>








</div>


</div>
<template file="Home/js"/>

</body>
</html>